import request from '@/utils/request'

// 查询订单主表列表
export function listZcmasterorder(query) {
  return request({
    url: '/zhongchuangauto/zcmasterorder/list',
    method: 'get',
    params: query
  })
}

// 查询订单主表详细
export function getZcmasterorder(orderId) {
  return request({
    url: '/zhongchuangauto/zcmasterorder/' + orderId,
    method: 'get'
  })
}

// 新增订单主表
export function addZcmasterorder(data) {
  return request({
    url: '/zhongchuangauto/zcmasterorder',
    method: 'post',
    data: data
  })
}

// 修改订单主表
export function updateZcmasterorder(data) {
  return request({
    url: '/zhongchuangauto/zcmasterorder',
    method: 'put',
    data: data
  })
}

// 删除订单主表
export function delZcmasterorder(orderId) {
  return request({
    url: '/zhongchuangauto/zcmasterorder/' + orderId,
    method: 'delete'
  })
}
